@import 'colorsRoot';

.order {
    padding: 97px 0 120px 0;

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;

        .order-image {
            padding-left: 15px;

            .order-image-img {
                max-width: 100%;
            }
        }

        .order-form {
            width: 50%;
            height: 100%;

            .order-form-title {
                font-family: Tavolgafree, sans-serif;
                font-size: 45px;
                font-weight: 100;
                color: @textDark;
                padding-bottom: 40px;
            }

            .order-form-desc {
                font-family: GilroyRegular, sans-serif;
                font-size: 18px;
                line-height: 28px;
                color: @textDark;
                padding-bottom: 49px;
                max-width: 400px;
            }

            .form {
                display: flex;
                flex-direction: column;

                .form-choice {
                    font-family: GilroyBold, sans-serif;
                    font-size: 18px;
                    color: @textDarkRedBrown;
                    padding-bottom: 19px;
                }

                label:nth-child(2) {
                    margin-bottom: 40px;
                }

                label:nth-child(4) {
                    margin-bottom: 14px;
                }

                label:nth-child(5) {
                    margin-bottom: 15px;
                }

                .form-input {
                    display: block;
                    width: 295px;
                    border: 1px solid @borderPearlyRuby;
                    border-radius: 30px;
                    background: transparent;
                    outline: none;
                    padding: 21px 27px;
                    font-size: 15px;
                    color: #120a06;

                    &::placeholder {
                        font-family: GilroyBold, sans-serif;
                        font-size: 15px;
                        color: #760c22;
                    }
                }

                .form-data {
                    font-family: GilroyBold, sans-serif;
                    font-size: 18px;
                    color: @textDarkRedBrown;
                    padding-bottom: 20px;
                }

                .form-btn {
                    width: 295px;
                    height: 60px;
                    padding: 21px;
                    border-radius: 30px;
                }
            }
        }

        .order-form-img-big {
            position: absolute;
            left: 0;
            top: 0;
            animation: translate-image 1.5s linear infinite alternate;
        }

        .order-form-img {
            position: absolute;
            bottom: 80px;
            right: 150px;
            animation: translate-image 2s linear infinite alternate;
        }
    }
}

@keyframes translate-image {
    0% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(8px);
    }
}

//Стиль для блока после успешной отправки формы
.order-done {
    display: none;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 590px;
}

/*Стиль для инпута при ошибке*/
.order {
    .container {
        .order-form {
            .form {
                .error-input {
                    border-color: @borderRed;
                    box-shadow: 0 0 10px 4px rgba(255, 0, 0, 0.3);;
                }
            }
        }
    }
}

/*Лоадер для отправки запроса*/
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(232, 163, 175, .3);
}

.lds-facebook,
.lds-facebook div {
    box-sizing: border-box;
}
.lds-facebook {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #c0707c;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
    left: 56px;
    animation-delay: 0s;
}
@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }
    50%, 100% {
        top: 24px;
        height: 32px;
    }
}

